package com.hm.homepage.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("websites")
public class Website {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String url;

    private String description;

    private String username;

    private String password;

    private String notes;

    private String category;

    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}